package com.learn.multi_thread.A_BaseThread.E_ProductionOfConsumers.A_BasicImplementation;

public class BaseCookThread {
    /**
     * 生产者消费者模式
     *
     * @param args
     */

    public static void main(String[] args) {
        ProductOfCook productOfCook = new ProductOfCook();
        ConsumerOfCook consumerOfCook = new ConsumerOfCook();

        productOfCook.setName("厨师");
        consumerOfCook.setName("食客");

        productOfCook.start();
        consumerOfCook.start();
    }
}
